package com.ruoyi.vote.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 选项信息对象 options
 * 
 * @author wxx
 * @date 2022-10-05
 */
public class Options extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 投票选项id */
    private Long id;

    /** 投票id */
    @Excel(name = "投票id")
    private Long voteId;

    /** 选项内容 */
    @Excel(name = "选项内容")
    private String option;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVoteId(Long voteId) 
    {
        this.voteId = voteId;
    }

    public Long getVoteId() 
    {
        return voteId;
    }
    public void setOption(String option) 
    {
        this.option = option;
    }

    public String getOption() 
    {
        return option;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("voteId", getVoteId())
            .append("option", getOption())
            .toString();
    }
}
